package com.express.service;

import com.express.bean.MapArea;
import com.express.dao.BaseAdminDao;
import com.express.dao.impl.AdminDaoMysql;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author: laixiangdong
 * @Date 2020/12/03
 */
public class AdminService {
    private static BaseAdminDao dao = new AdminDaoMysql();

    public static void updateLoginTimeAndIP(String username, Date date, String ip) {
        dao.updateLoginTime(username, date, ip);
    }

    public static Boolean login(String username, String password) {
        return dao.login(username, password);
    }

    public static Map<String, Integer> console() {
        return dao.console();
    }

    public static List<MapArea> map(){
        return dao.map();
    }
}
